<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld"%>
<!DOCTYPE HTML>
<html>
<head>
    <title>角色管理</title>
    <meta charset="UTF-8">
    <%@include file="../common/common_edit.jsp" %>
</head>
<body>
<form name = "syslogForm" id = "syslogForm" class="form-inline definewidth m20" action="<%=basePath %>/user/updateRole.do" method="post" >
  		<label id="resoult">${pageResult}</label><br/>
  		<table class="table table-bordered table-hover definewidth m10">
	    <tr>
	   		<td width=20%>角色名称</td>
	        <td width=80%><input name="name" id="name" type="text" value = "${returnInfo.name}" style="width:250px"/></td>
	    </tr>
<!--     	<tr> -->
<!-- 			<td>代码</td> -->
<!-- 			<td><input name="code" id="code"  type="text" value = "${returnInfo.code}" style="width:250px"/></td> -->
<!-- 		</tr> -->
		<tr>
			<td>描述</td>
			<td><input name="description" id="description"  type="text" value = "${returnInfo.description}" style="width:250px"/></td>
		</tr>
		<tr>
			<td>状态</td>
			<td>
				<select  name = "status" id = "status" style="width:250px" >
			    	<option value = "0" <c:if test = "${returnInfo.status eq 0}">selected</c:if>>无效</option>
			    	<option value = "1" <c:if test = "${returnInfo.status eq 1}">selected</c:if>>有效</option>
		    	</select>
			</td>
		</tr>
		<tr>
	    	<td>&nbsp;</td>
	    	<td>
	    		<input type="submit" class="btn btn-primary" value = "确定">&nbsp;
	    		<button type="button" class="btn" onclick="frameElement.api.close();">关闭</button>
	    	</td>
	    </tr>
	</table>
  	<input type="hidden" name="id" id="id" value="${returnInfo.id}">
</form>
</body>
</html>